<div id="col3" class="st-index-right">
  <div class="right-wrap">
    <div class="right-box clearfix" model-node="related_list">
      <fieldset class="inter-line mb20">
        <span class="right" id="feed_img_count">0张</span>
        <legend class="inter-txt">分享配图</legend>
        <input type="hidden" id="feed_max_id" value="0">
        <input type="hidden" id="feed_min_id" value="0">
      </fieldset>
      <div id="feed_img_list"></div>
    </div>
  </div>
</div>
<script type="text/javascript">
function get_feed_img(type){
	var max_id = type==0 ? $('#feed_min_id').val() : $('#feed_max_id').val();
	var url = "{:U('public/Profile/get_feed_img')}";
	var uid = "{$uid}";
	$.post(url,{max_id:max_id,type:type,uid:uid},function(res){
		res=JSON.parse(res);
		
		$('#feed_max_id').val(res.max_id);
		$('#feed_min_id').val(res.min_id);
		$('#feed_img_list').html(res.html);
		$('#feed_img_count').html(res.count+'张');
	});
}
$(function(){
	$('#feed_min_id').val(0) ;
	$('#feed_max_id').val(0);
	get_feed_img(1);
});
</script>